package com.yhm.testSpringMvc.ACM;

import java.util.Scanner;

class Main2 {
  public static void main(String[] args) {
      Scanner sc = new Scanner(System.in);
      int n = sc.nextInt();
      while(n-->0){
          int a = sc.nextInt();
          int b = sc.nextInt();
          System.out.println(a+b);
      }
  }

}